package com.wjc.train.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wjc.train.business.entity.DailyTrain;
import com.wjc.train.business.req.DailyTrainTicketQueryReq;
import com.wjc.train.business.req.DailyTrainTicketSaveReq;
import com.wjc.train.business.resp.DailyTrainTicketQueryResp;

import java.util.Date;

/**
 * <p>
 * 余票信息 服务类
 * </p>
 *
 * @author Guessed
 * @since 2023-08-11
 */
public interface IDailyTrainTicketService  {

  /**
     * 保存或修改
     * @param dailytrainticketSaveReq
     */
    void save(DailyTrainTicketSaveReq dailytrainticketSaveReq);

    /**
     * 分页查询
     * @param page
     * @param dailytrainticketQueryReq
     * @return
     */
    IPage<DailyTrainTicketQueryResp> queryList(IPage<DailyTrainTicketQueryResp> page, DailyTrainTicketQueryReq dailytrainticketQueryReq);

    /**
     * 删除
     * @param id
     */
    void delete(Long id);

  /**
   * 生成余票信息
   * @param date
   * @param trainCode
   */
  void genDaily(DailyTrain dailyTrain, Date date, String trainCode);

}
